import { http } from '@/utils/http'
import type { Shop } from '@/types/shop'

/**
 * 获取本店地址
 */
export const shopGetAddressAPI = () => {
  return http<Shop>({
    method: 'GET',
    url: `/shop/mini-address`,
  })
}

/**
 * 店铺营业时间
 */
export const shopGetBusinessTimeAPI = () => {
  return http<{ timeRange: string[] }>({
    method: 'GET',
    url: `/shop/mini-business-time`,
  })
}
